#include "../../h/apue.h"
#include <fcntl.h>

int main(void)
{
    char * filename = "tempfile";

    if (open(filename, O_RDWR) < 0)
        err_sys("open error");
    if (unlink(filename) < 0)
        err_sys("unlink error");

    printf("file unlinkd\n");

    sleep(15);
    printf("done\n");

    return 0;
}
